﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Dycox.ComponentModel;

namespace Dycox.Validation
{
    public class ValidationMessageEntry : MessageEntry
    {
        internal ValidationMessageEntry(string message, MessageKind kind, PropertyDescriptor property, string path)
            : base(message, kind)
        {
            _property = property;
            _memberPath = path;
        }

        private string _memberPath;

        public string MemberPath
        {
            get { return _memberPath; }
        }


        private PropertyDescriptor _property;

        public PropertyDescriptor Property
        {
            get { return _property; }
        }

    }
}
